package org.dg.iag.entity;

import java.io.Serializable;
import java.util.ArrayList;

import com.thoughtworks.xstream.annotations.XStreamAlias;
import com.thoughtworks.xstream.annotations.XStreamImplicit;

@XStreamAlias("SettingsInstance")
public class SettingsInstance implements Serializable {
	private Long id;
	private String refreshType; // "Automatically all", "Automatically new", "Automatically Failed"
	private String howOften; //daily,weekly, monthly
	private Integer dayOfWeek	= -1;
	private Integer dayOfMonth	= -1;
	private Integer hour		= -1;
	private Integer minute		= -1;
	private Boolean enabled	= false;
	private String time		= "";
	
//	@XStreamImplicit(itemFieldName="Source")
//	private ArrayList<Source> sources	= null;

	/**
	 * @return the id
	 */
	public Long getId() {
		return id;
	}

	/**
	 * @param id the id to set
	 */
	public void setId(Long id) {
		this.id = id;
	}

	/**
	 * @return the refreshType
	 */
	public String getRefreshType() {
		return refreshType;
	}

	/**
	 * @param refreshType the refreshType to set
	 */
	public void setRefreshType(String refreshType) {
		this.refreshType = refreshType;
	}

	/**
	 * @return the howOften
	 */
	public String getHowOften() {
		return howOften;
	}

	/**
	 * @param howOften the howOften to set
	 */
	public void setHowOften(String howOften) {
		this.howOften = howOften;
	}

	/**
	 * @return the dayOfWeek
	 */
	public Integer getDayOfWeek() {
		return dayOfWeek;
	}

	/**
	 * @param dayOfWeek the dayOfWeek to set
	 */
	public void setDayOfWeek(Integer dayOfWeek) {
		this.dayOfWeek = dayOfWeek;
	}

	/**
	 * @return the dayOfMonth
	 */
	public Integer getDayOfMonth() {
		return dayOfMonth;
	}

	/**
	 * @param dayOfMonth the dayOfMonth to set
	 */
	public void setDayOfMonth(Integer dayOfMonth) {
		this.dayOfMonth = dayOfMonth;
	}

	/**
	 * @return the hour
	 */
	public Integer getHour() {
		return hour;
	}

	/**
	 * @param hour the hour to set
	 */
	public void setHour(Integer hour) {
		this.hour = hour;
	}

	/**
	 * @return the minute
	 */
	public Integer getMinute() {
		return minute;
	}

	/**
	 * @param minute the minute to set
	 */
	public void setMinute(Integer minute) {
		this.minute = minute;
	}

	/**
	 * @return the enabled
	 */
	public Boolean getEnabled() {
		return enabled;
	}

	/**
	 * @param enabled the enabled to set
	 */
	public void setEnabled(Boolean enabled) {
		this.enabled = enabled;
	}

	/**
	 * @return the time
	 */
	public String getTime() {
		return time;
	}

	/**
	 * @param time the time to set
	 */
	public void setTime(String time) {
		this.time = time;
	}

	
	
	
}
